import React, { Component } from 'react';
import '../styles/login.scss'
import { Input, Button } from 'antd-mobile'
import {withRouter} from 'react-router-dom'
class login extends Component {
    toLogon = () => {
        this.props.history.push('/logon')
    }
    render() {
        return (
            <div className='login'>
                <Input className='name' type='text' placeholder='请输入账户'/>
                <Input className='pass' type='password' min={6} placeholder='请输入密码' />
                <Button className='login' block color='primary' size='large'>登 录</Button>
                <Button className='logon' color='primary' fill='none' onClick={this.toLogon}>注 册</Button>
            </div>
        );
    }
}

export default withRouter(login);